/*
 *  Copyright 2009 Allan Lykke Christensen.
 * 
 *  Licensed under the Apache License, Version 2.0 (the "License",,
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 * 
 *       http://www.apache.org/licenses/LICENSE-2.0
 * 
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *  under the License.
 */
package dk.i2m.netbeans.modules.doxia.lexer;

import dk.i2m.netbeans.modules.doxia.jcclexer.AptParserConstants;

/**
 * Enumeration of legal tokens for the APT format.
 *
 * @author Allan Lykke Christensen
 */
public enum AptToken {

    EOF(AptParserConstants.EOF, "whitespace"),
    EOL(AptParserConstants.EOL, "whitespace"),
    _EOL1(AptParserConstants._EOL1, "whitespace"),
    NOT_EOL(AptParserConstants.NOT_EOL, "default"),
    WHITESPACE(AptParserConstants.WHITESPACE, "whitespace"),
    PAGE_HEADER(AptParserConstants.PAGE_HEADER, "pageHeader"),
    SECTION_TITLE(AptParserConstants.SECTION_TITLE, "section"),
    SECTION(AptParserConstants.SECTION, "section"),
    ANCHOR(AptParserConstants.ANCHOR, "anchor"),
    LINK(AptParserConstants.LINK, "link"),
    ITALIC(AptParserConstants.ITALIC, "italic"),
    BOLD(AptParserConstants.BOLD, "bold"),
    MONOSPACED(AptParserConstants.MONOSPACED, "monospaced"),
    COMMENT(AptParserConstants.COMMENT, "comment"),
    ERROR(AptParserConstants.ERROR, "error"),
    VERBATIM(AptParserConstants.VERBATIM, "monospaced");
    int id;
    String category;

    AptToken(int id, String category) {
        this.id = id;
        this.category = category;
    }

    public int id() {
        return id;
    }

    public String category() {
        return category;
    }
}
